package main

import (
	"OTPService/api"
	"fmt"
	"github.com/gin-gonic/gin"
	"log"
)

func main() {
	r := gin.Default()

	r.POST("/register", api.Register)
	r.POST("/login", api.Login)
	r.POST("/otp/verify", api.OtpVerify)
	r.Static("/", "./web/html")

	fmt.Println("Server started on :8080")
	log.Fatal(r.Run(":8080"))

}
